<?php
/*********************************************************************************
 * Copyright (C) 2011-2013 X2Engine Inc. All Rights Reserved.
 * 
 * X2Engine Inc.
 * P.O. Box 66752
 * Scotts Valley, California 95067 USA
 * 
 * Company website: http://www.x2engine.com 
 * Community and support website: http://www.x2community.com 
 * 
 * X2Engine Inc. grants you a perpetual, non-exclusive, non-transferable license 
 * to install and use this Software for your internal business purposes.  
 * You shall not modify, distribute, license or sublicense the Software.
 * Title, ownership, and all intellectual property rights in the Software belong 
 * exclusively to X2Engine.
 * 
 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EITHER 
 * EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF 
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT.
 ********************************************************************************/

$this->menu=array(
	array('label'=>'Admin Index', 'url'=>array('index')),
);
?>

<h1><?php echo Yii::t('admin','Send A Mass Email');?></h1>

<b><?php echo Yii::t('admin','Current search term:');?></b> <br /><u><?php echo $criteria; ?></u><br /><br />
<a href="searchContact"><?php echo Yii::t('admin','Change');?></a>
<br /><br /><br />
<b><?php echo Yii::t('admin','Mailing List Size:');?> </b><?php echo count($mailingList); ?>
<br /><br /><br /><br />

<h2><?php echo Yii::t('admin','Email Form');?></h2>

<?php echo CHtml::form('mail','post',array('enctype'=>'multipart/form-data')); ?>
<?php echo Yii::t('admin',"Subject").": <br/ >".CHtml::textField('subject', '',array('size'=>40)); ?> <br />
<?php echo Yii::t('app',"Message Body").": <br />".CHtml::textArea('body','',array('rows'=>12,'cols'=>60)); ?><br />
<?php echo CHtml::hiddenField('criteria',$criteria)?><br />
<?php echo CHtml::submitButton(Yii::t('admin','Send Mail'),array('class'=>'x2-button btn btn-mini  btn-yellow')); ?> 
<?php echo CHtml::endForm(); ?> 
